JavaScript | How can I remove an element of an array using it's value instead of it's index

visit shbcf.ru